import { CardEditableParamsDefault, CardDataEditableParamsCommonDefault } from "@/views/card/js/data/cardDatas/card-datas-default.js";
import TooltipsData from "@/views/card/js/data/tooltipsData/tooltips-data.js";
const CARD_22 =  {
    width: {  // Number
      ...CardEditableParamsDefault.SliderNormal,
      label: '图片宽度限制',
      max: 750,
      step: 5,
      unit: 'px',
    },
    height: {  // Number
      ...CardEditableParamsDefault.SliderNormal,
      label: '图片高度限制',
      max: 2000,
      step: 5,
      unit: 'px',
    },
    flow_gap: {
      ...CardEditableParamsDefault.SliderNormal,
      label: '轮播间隔',
      min: 0,
      max: 100,
      step: 0.5,
    },
    auto_flow: {
      ...CardEditableParamsDefault.SwitchNormal,
      label: '自动轮播',
      bIsUpdateManual: true,
      boolReplace: {
        boolTrue: '1',
        boolFalse: '0',
      },
      tooltips: TooltipsData.CARD_22[0],
    },
    Idx_item_title_open: {  // 默认0不启用标题, 1启用标题设置,一旦设置启用则所有的item都要校验,标题10个汉字以内
      ...CardEditableParamsDefault.SwitchNormal,
      label: '开启标题',
      bIsUpdateManual: true,
      boolReplace: {
        boolTrue: '1',
        boolFalse: '0',
      },
    },
    pic_items: {  // TODO:
      ...CardEditableParamsDefault.Lists,
      label: '添加图片',
      param_params: {
        pic: {
          ...CardEditableParamsDefault.ImageNormal,
          label: '图片地址',
          res_type: 'String',  // Array : fileList, String : value
          placeholder: '尺寸严格按照设置的宽高，小于500kb，jpg,jpeg,png,gif格式',
          limit: 1,
          size: 500,
          accept: '.jpg, .jpeg, .png, .gif',
          tooltips: TooltipsData.image[3],
        },
        scheme: {
          ...CardEditableParamsDefault.InputNormal,
          label: '跳转链接',
          placeholder: '请填入跳转链接',
        },
        content1: {
          ...CardEditableParamsDefault.InputNormal,
          label: '标题',
          placeholder: '请填入标题（有则所有图片必备）',
          param_effect_parent: {
            effect_parent_keys: ['Idx_item_title_open'],
            effect_type: ['SHOW_HIDE'],
            effect_parent_val: '1',
            effect_clear: {  // 有则 清除
              effect_clear_default_val: '',  // default
            },
          },
        },
      },
    },
    ...CardDataEditableParamsCommonDefault,
  };
export default CARD_22;